﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Rendering;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;

namespace admin.cyt369.com.Controllers
{
    public partial class AccountController : Admin.CYT369.Com.WebBase.AllowAnonymousController
    {
        /// <summary>
        /// 登录
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        [AllowAnonymous]
        public virtual IActionResult Login(string returnUrl)
        {
            ViewBag.SYSTEM_NAME = Admin.CYT369.Com.Utility.SystemSettingService.Instance.SystemName;

            return View();
        }

        public virtual IActionResult UserProfile()
        {
            var user = Admin.CYT369.Com.DAL.Services.UserService.Instance.GetUserByID(this.GetUserId());
            return View(user);
        }

        public virtual IActionResult _ChangePasswordDlg()
        {
            return View();
        }

        public virtual IActionResult _ChangeUserAvatarDlg()
        {
            return View();
        }
    }
}
